{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-title">
        <h5>审核</h5>
    </div>
    <div class="ibox-content layui-form">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">ID编号：</label>
                <div class="layui-input-block">
                    <input type="text"disabled name="" class="layui-input " value="{$list.s_id}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">账号：</label>
                <div class="layui-input-block">
                    <input type="text" name="account" placeholder="请填写账号" lay-verify="required|pass" class="layui-input ">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">密码：</label>
                <div class="layui-input-block">
                    <input type="text" name="password" placeholder="请填写密码" lay-verify="required"class="layui-input" >
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">姓名：</label>
                <div class="layui-input-block">
                    <input type="text"disabled  name=""  class="layui-input" value="{$list.s_dl_name}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">手机号：</label>
                <div class="layui-input-block">
                    <input type="text"disabled name=""  class="layui-input " value="{$list.s_dl_phone}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">申请管辖区域：</label>
                <div class="layui-input-block">
                    <input type="text" disabled name=""  class="layui-input "value="{$list.address}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">申请时间：</label>
                <div class="layui-input-block">
                    <input type="text" disabled name=""  class="layui-input "value="{$list.s_dl_time}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <textarea style="width:300px;height:200px">{$list.s_dl_content}</textarea>
                </div>
            </div>
            <input type="hidden" name="id" value="{$id}">
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="component-form-element">审核通过
                    </button>
                    <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript" src="__JS__/Crop.js"></script>

<script>
    layui.use(['form'], function() {
        var form = layui.form;
        form.verify({

            pass: [/^[\S]{6,12}$/,'账号必须6到12位，且不能出现空格'],
        });
        form.on('submit(component-form-element)', function (data) {
            $('.layui-btn').addClass('layui-disabled').attr('disabled','disabled');
            $.ajax({
                url:"{:url('sheng')}",
                type:'post',
                dataType:'json',
                data:data.field,
                success:function(res){
                    if (res.code == 200) {
                        wk.success(res.msg,"{:url('verify/index')}")
                    } else {
                        wk.error(res.msg,'','$(".layui-btn").removeClass(\'layui-disabled\').removeAttr(\'disabled\');');
                    }
                }
            })
        });
    });
</script>
</body>
</html>